package sbeam.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sbeam.mapper.UploadMapper;
import sbeam.model.Upload;
import sbeam.service.UploadService;
@Service
public class UploadServiceImpl implements UploadService {
	
	@Autowired
	private UploadMapper dao;
	
	@Override
	public List<Upload> getUploadByDevId(Integer devid) {
		
		return this.dao.findUploadByDevId(devid);
	}

	@Override
	public List<Upload> getAllUpload() {
		return this.dao.findAllUpload();
	}

	@Override
	public void doAuditing(Integer uid,Integer status) {
		this.dao.doAuditing(uid, status);
		
	}

	@Override
	public Upload getUploadById(Integer uid) {
		return this.dao.getUploadById(uid);
	}

}
